package com.oocl.o2o.merchant.controller.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.SessionAttribute;

import com.oocl.o2o.merchant.service.MerchantManager;
import com.oocl.o2o.merchant.vo.AuditInfo;

@RestController
@RequestMapping("/sec/rest/auditInfo")
public class AuditInfoController {
	@Autowired
	private MerchantManager merchantManager;

	@GetMapping
	public AuditInfo getAuditInfo(@SessionAttribute String username) {
		AuditInfo auditInfo = merchantManager.getAuditInfo(username);
		return auditInfo;
	}
}
